package com.wander.patterns.act.mediator;

/**
 * @description:财务部门
 * @author: zhuyong
 * @create: 2019-09-09 17:13
 **/
public class Finance implements Department{
    private Mediator mediator;

    public Finance(Mediator mediator) {
        this.mediator = mediator;
        mediator.register("Finance",this);
    }

    @Override
    public void selfAction() {
        System.out.println("财务部门发放资金");
    }

    @Override
    public void outAction() {
        System.out.println("财务部向上级汇报发放状态");

    }
}
